home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000056_news@columbia.edu _Thu Apr 5 14:42:48 2001.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by monire.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id OAA27003
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Thu, 5 Apr 2001 14:42:48 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id OAA27584
  7.     for kermit.misc@watsun.cc.columbia.edu; Thu, 5 Apr 2001 14:22:38 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: grante@visi.com (Grant Edwards)
  10. Subject: Macro prameters containing spaces?
  11. Message-ID: <LJ2z6.11071$SB2.1260878@ruti.visi.com>
  12. Date: Thu, 05 Apr 2001 18:22:35 GMT
  13. To: kermit.misc@columbia.edu
  14.  
  15. I'm trying to automate some stuff done via serial port using
  16. CKermit 7.  My local B&N didn't carry the book, so I've ordered
  17. a copy.  But, in the meanwhile, I'm stuck on trying to write a
  18. macro where one of the parameters is a string that may have
  19. spaces in it:
  20.  
  21. define docmd {
  22. output \fcontents(\%2)
  23. output \13
  24. input \%1 Prompt>
  25. if failure echo FAILURE
  26. }
  27.  
  28. define setup {
  29. docmd 1 hello
  30. docmd 1 "ip 192.168.1.11 255.255.255.0 192.168.1.1"
  31. docmd 25 "flash init -f"
  32. docmd 1 reset
  33. }
  34.  
  35. I've tried using \32 for space in the parameter string and that
  36. doesn't work either.  There must be trick to make this work...
  37.  
  38. -- 
  39. Grant Edwards                   grante             Yow!  Youth of today! Join
  40.                                   at               me in a mass rally
  41.                                visi.com            for traditional mental
  42.                                                    attitudes!